package edu.chalmers.AV_2DPlatformerFramework.Model;

import edu.chalmers.AV_2DPlatformerFramework.Utility.Vector2D;
import java.util.ArrayList;

/**
 * Deafult GameObject, mainly used for testing.
 * @author Joakim Karlsson
 */
public class DefaultGameObject extends GameObject {

    public DefaultGameObject(Hitbox hitbox) {
        super(hitbox);
    }

    public DefaultGameObject(Hitbox hitbox, Layer layer,
            double elasticity, double weight) {
        super(hitbox, layer, elasticity, weight);
    }
    
    public DefaultGameObject(Hitbox hitbox, Layer layer,
            double elasticity, double weight,
            ArrayList<Texture> textures) {
        super(hitbox, layer, elasticity, weight, textures);
    }

    public DefaultGameObject(Hitbox hitbox, Layer layer,
            double elasticity, double weight,
            Vector2D position, Vector2D velocity) {
        super(hitbox, layer, elasticity, weight, position, velocity);
    }
    
    public DefaultGameObject(Hitbox hitbox, Layer layer,
            double elasticity, double weight,
            Vector2D position, Vector2D velocity,
            ArrayList<Texture> textures) {
        super(hitbox , layer, elasticity, weight, position, velocity, textures);
    }
    
    @Override
    public void onCollision(GameObject otherObject) {
        System.out.println("Krock!");
    }

    @Override
    public GameObject copy() {
       return new DefaultGameObject(getHitbox().copy(), getLayer().copy(),
               getElasticity(), getWeight(), getPosition().copy(),
               getVelocity().copy(), TEXTURES);
    }
    
}
